package com.yhsoft.mall.controller.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class TopicListInVo {

    @ApiModelProperty("专题名称")
    private String name;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime endTime;

    @ApiModelProperty("小程序id,小程序必填,pc不填")
    private String appId;

    @NotNull(message = "当前页不能为空")
    private Long pageNo;
    @NotNull(message = "页数不能为空")
    private Long pageSize;

}
